home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-11-17 | 22.2 KB | 90 lines | [TEXT/SPM ] |
- /*
- Component Interface.h
-
- Describes the component interface routines and their parameters.
-
- Important note about naming conventions: Read the file "API Readme.h" to understand
- the prefixes used in all of the calls...
- */
-
- #if 0 // don't include into compilation of code
-
- /* ***** Starting Up and Shutting Down ***** */
-
- pascal ICError ICCStart(internetConfigurationComponent *inst, OSType creator);
- /*
- Call this at application initialisation. Set creator to your application
- creator to allow for future expansion of the IC system. Returns
- inst as a connection to the IC system.
- */
-
- pascal ICError ICCStop(internetConfigurationComponent inst);
- /*
- It is illegal to call this routine inside a ICBegin/End pair.
-
- Call this at application initialisation, after which inst
- is no longer valid connection to IC.
- */
-
- /* ***** Specifying a Configuration ***** */
-
- pascal ICError ICCFindConfigFile(internetConfigurationComponent inst, short count, ICDirSpecArrayPtr folders);
- /*
- It is illegal to call this routine inside a ICBegin/End pair.
-
- Call to configure this connection to IC.
- Set count as the number of valid elements in folders.
- Set folders to a pointer to the folders to search.
- Setting count to 0 and folders to nil is OK.
- Searches the specified folders and then the Preferences folder
- in a unspecified manner.
- */
-
- pascal ICError ICCFindUserConfigFile(internetConfigurationComponent inst, ICDirSpec *where)
- /*
- Requires IC 1.1.
-
- It is illegal to call this routine inside a ICBegin/End pair.
-
- Similar to ICFindConfigFile except that it only searches the folder
- specified in where. If the input parameters are valid the routine
- will always successful configure the instance, creating an
- empty configuration if necessary
- For use with double-clickable preference files.
- */
-
- pascal ICError ICCGeneralFindConfigFile(internetConfigurationComponent inst, Boolean search_prefs, Boolean can_create,
- short count, ICDirSpecArrayPtr folders)
- /*
- Requires IC 1.2.
-
- It is illegal to call this routine inside a ICBegin/End pair.
-
- Call to configure this connection to IC.
- This routine acts as a more general replacement for
- ICFindConfigFile and ICFindUserConfigFile.
- Set search_prefs to true if you want it to search the preferences folder.
- Set can_create to true if you want it to be able to create a new config.
- Set count as the number of valid elements in folders.
- Set folders to a pointer to the folders to search.
- Setting count to 0 and folders to nil is OK.
- Searches the specified folders and then optionally the Preferences folder
- in a unspecified manner.
- */
-
- pascal ICError ICCChooseConfig(internetConfigurationComponent inst)
- /*
- Requires IC 1.2.
-
- It is illegal to call this routine inside a ICBegin/End pair.
-
- Requests the user to choose a configuration, typically using some
- sort of modal dialog. If the user cancels the dialog the configuration
- state will be unaffected.
- */
-
- pascal ICError ICCChooseNewConfig(internetConfigurationComponent inst)
- /*
- Requires IC 1.2.
-
- It is illegal to call this routine inside a ICBegin/End p